package com.ease.framework.workbench.spi
{
	import com.ease.common.models.IModel;
	
	import mx.core.Container;
	import mx.core.UIComponent;
	import mx.validators.ValidationResult;
	
	public interface IControlCreator
	{
		function get title():String;
		function set title(r_Title:String):void;
		function get context():IValueRepository;
		function set context(r_ValueRepository:IValueRepository):void;
		function get currentControl():UIComponent;
		
//		public function get image():Class;
//		public function set image(imageResource:Class):void;
		function get model():IModel;
		function set model(mo:IModel):void;
		function load():void;
		function save():void;
		function createComponent(parent:Container):UIComponent;
		function validate():ValidationResult;
		
	}
}